package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.InterviewSituationRecordMapper;
import com.qingke.pojo.InterviewSituationRecord;
import com.qingke.service.InterviewSituationRecordService;

@Service("interviewSituationRecordService")
public class InterviewSituationRecordServiceImpl implements InterviewSituationRecordService {
	@Resource
	private InterviewSituationRecordMapper isDao;

	public int saveInterviewSituationRecord(InterviewSituationRecord record) {
		return isDao.insertSelective(record);
	}

	public int softDelete(int id) {
		return isDao.softDelete(id);
	}

	public InterviewSituationRecord getInterviewSituationRecord(int id) {
		return isDao.selectByPrimaryKey(id);
	}

	public List<InterviewSituationRecord> listInterviewSituationRecord() {
		return isDao.listInterviewSituationRecord();
	}

	public int updateInterviewSituationRecord(InterviewSituationRecord record) {
		return isDao.updateByPrimaryKeySelective(record);
	}

}
